broadway: Keep an reference on surfaces
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2020 13:10:28 +0000 (09:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2020 13:12:07 +0000 (09:12 -0400)
commit4acb56d8c50bcd519f10948c83477a385eeb61cd
tree5f951ea7048d82ab12ec3de748fb10ae49efb998
parentf4d3d8e27c87b7979699f8bd71e044f4bd98703e
broadway: Keep an reference on surfaces

GDK backends are expected to keep a references on
their surfaces as long as they are associated with
external resources, and drop it in destroy().

This showed up as criticals in the shortcuts test
which manually creates and destroys surfaces.
gdk/broadway/gdksurface-broadway.c